<script>
	import { mapState,mapMutations } from 'vuex';
	export default {
		onLaunch: function() {
			const _this = this;
			uni.onTabBarMidButtonTap(function(e) {
				_this.OPEN_MID_BTN(!_this.isOpen);
			});
		},
		computed:{
			...mapState({
				isOpen: state => state.isOpen
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			...mapMutations([
				'OPEN_MID_BTN'
			])
		}
	}
</script>

<style lang="scss">
	/*
	引入iconfont
	*/
	@import './assets/css/iconfont.css';
	/*每个页面公共css */
	@import './assets/css/common.scss';
	page {
		min-height: 100%;
		min-height: 100vh;
		color: #333;
	}
	/deep/::-webkit-scrollbar {
		display: none;
		width: 0 !important;
		height: 0 !important;
		-webkit-appearance: none;
		background: transparent;
	}
</style>
